package com.softeware.dao.message;

import com.softeware.pojo.Message;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface MessageDao {
    public List<Message> getAllMessages(Connection connection) throws SQLException;
    public List<Message> getMessages(int begin, int quantity);
    int addMessages(Connection connection,Message message) throws SQLException;
}
